package com.best.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

/**
 * @author Jiang Akang
 * employeeId: BG435424
 * @date 2021/2/2
 **/
@Repository
public class SaveDao {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    public void insert(String name) {
        String sql = "insert into person (name) values (?)";
        jdbcTemplate.update(sql, name);
    }

}
